package com.spring.cloud.alibaba.service.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spring.cloud.alibaba.commons.params.StockParam;
import com.spring.cloud.alibaba.commons.pojo.StockInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StockMapper extends BaseMapper<StockInfo> {

   Integer findCountByGoodCode(String goodCode);

   Integer updateStockById(@Param("id") Long id, @Param("count") Integer count);

   List<StockInfo> selectListByCondition(@Param("queryParam") StockParam stockParam);
}

